package com.mk.cloud.common.interceptor.cookie;

import act.app.ActionContext;
import com.mk.cloud.common.enums.ErrorCode;
import org.osgl.mvc.annotation.Before;
import org.osgl.mvc.result.Result;

/**
 * Cookie方式
 * 登录信息验证
 */
@SuppressWarnings("unused")
public class ICLogin extends CookieService {
    @Before
    public Result check(ActionContext context) {
        if (me == null) {
            return renderJson(ErrorCode.E201003.map());
        }
        return null;
    }
}
